package com.lwz.repair.controller;


import com.lwz.repair.entity.Person;

import java.util.Scanner;

public class TestController {
    public static void main(String[] args) {
//        Person person = new Person();
//        person.name ="sndiaso";
//        person.Showname();
//
//        new Person().name ="SDASD";
//        new Person().Showname();
    //匿名对象只能使用唯一的一次

//        Scanner sc =new Scanner(System.in);
//        int num =sc.nextInt();
//        System.out.println(num);
        //普通

//        int num1 =new Scanner(System.in).nextInt();
//        System.out.println(num1);
        //匿名方式

//        tes14(new Scanner(System.in));
        Scanner sc =tes14();
        int num = sc.nextInt();
        System.out.println("num = " + num);
        

    }
    public static void tes14(Scanner sc){
        int num= sc.nextInt();
        System.out.println("num = " + num);

    }
    public static Scanner tes14(){
        
        return new Scanner(System.in);

    }
    


}
